home *** CD-ROM | disk | FTP | other *** search
- Path: cadesm44.eng.utah.edu!stack
- From: stack@cadesm44.eng.utah.edu (Timothy Stack)
- Newsgroups: comp.sys.amiga.programmer
- Subject: Re: BOOPSI Lib code
- Date: 2 Feb 1996 17:08:04 GMT
- Organization: University of Utah Computer Center
- Message-ID: <4etgdk$u4@news.cc.utah.edu>
- References: <65641198%agos001@pn.itnet.it> <heinz.15eg@hwg.muc.de> <65641207%agos001@pn.itnet.it>
- NNTP-Posting-Host: cadesm44.eng.utah.edu
- X-Newsreader: TIN [version 1.2 PL2]
-
- Stefano Agostinelli (agos001@pn.itnet.it) wrote:
- : Heinz Wrobel wrote in comp.sys.amiga.programmer about "Re: BOOPSI Lib code":
- : > Stefano Agostinelli (agos001@pn.itnet.it) wrote:
- : > >how can I make my boopsi classes external?I suppose I need some pre-cooked
- : > >library startup code;SAS/C libinit/devinit objects are only for
- : > >library/device code,isn't it?MUI external classes make use of libinit,
- : > >I'm sure,but what about generic boopsi classes?
- : > >And what is libent.o?
- : > >Many thanks.
- : >
- : > With e.g SAS/C. No, you got one with SAS/C. Yes. BOOPSI classes are
- : > basically libraries, too. Hmm, did you _buy_ your copy of SAS/C?
-
- : Yep I've buyed my copy of SAS/C!The manual says nothing about BOOPSI
- : classes (well it only says they must be opened/closed just as normal
- : libraries).
-
- : > Let me suggest that you RTFM and the RKM's again.
-
- : I've read both the SAS/C manual and the RKMs.Both says nothing about
- : the procedure to follow for creating external BOOPSI classes!
-
- : BTW I'm looking for some real example.
-
- : Cheerio
- : Stefano
-
- : +-----------------------------+-----------------------------------------+
- : | Stefano Agostinelli | Now developing for You ARM: |
- : | Genoa - Italy | the State of Art AmigaRoleMaster System |
- : +-----------------------------+-----------------------------------------+
- : | IRC: arm | 'Where are you going, Master?' |
- : | E-mail: agos001@pn.itnet.it | 'To the Havens, Sam' |
- : +-----------------------------+-----------------------------------------+
-
- The only thing you have to do is create your dispatcher then have the
- library init code call MakeClass and AddClass... Thats all, so when
- you open the library it will automatically add the class. Be warned
- that you must reset A6 and A4 before you do anything. A simple way to
- do it is to set the h_Entry in the hook to a function that will place
- your lib base in A6 then call geta4() then you just call the
- h_SubEntry which is your dispatcher. And you can stash the lib
- pointer in one of the userdata sections of the structs. Easy.
-
- Tim Stack
-
-